import Vue from 'vue'
import Vuex from "vuex"
Vue.use(Vuex)


import {state,mutations,getters} from './mutations'
import {actions} from './actions.js'
import mainindex from "./modules/mainindex"
import cates from "./modules/cates"
import banner from "./modules/banner"
import hortgoods from "./modules/hortgoods"
import goodslist from "./modules/goodslist"
import search from "./modules/search"
import onegoods from "./modules/onegoods"
import goodsdetail from "./modules/goodsdetail"
import cartlist from "./modules/cartlist"
import addresspath from './modules/addresspath'


export default new Vuex.Store({
    state,
    mutations,
    actions,
    getters,
    modules: {
      mainindex,
      cates,
      banner,
      hortgoods,
      goodslist,
      search,
      onegoods,
      goodsdetail,
      cartlist,
      addresspath
    }
  })